package com.itheima.service.Impl;

import com.itheima.dao.SetmealDao;
import com.itheima.pojo.Setmeal;
import com.itheima.service.SetmealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SetmealServiceImpl implements SetmealService {

    @Autowired
    private SetmealDao setmealMapper;

    // 查询所有套餐
    @Override
    public List<Setmeal> findAll() {
        return setmealMapper.findAll() ;
    }

    //根据id查询套餐
    @Override
    public Setmeal findById(Integer id) {

        return setmealMapper.findById(id);
    }
}
